python how much memory does a variable need

119

python how much memory does a variable need -

from sys import getsizeof
a = 42
getsizeof(a) # size of object in bytes

Comments

Submit
0 Comments